package com.hongyuan.sellfitness.ui.home.view_mode;

import android.graphics.drawable.Drawable;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.hongyuan.sellfitness.base.ItemViewModel;
import com.hongyuan.sellfitness.ui.delfiles.OsfBean;


public class HomeMarkItmeViewModel extends ItemViewModel<FragmentHomeViewModel> {

    public ObservableField<OsfBean> entity = new ObservableField<>();

    //占位图
    public Drawable drawableImg;

    public HomeMarkItmeViewModel(@NonNull FragmentHomeViewModel viewModel, OsfBean entity) {
        super(viewModel);
        this.entity.set(entity);
        //ImageView的占位图片，可以解决RecyclerView中图片错误问题
        //drawableImg = ContextCompat.getDrawable(viewModel.getApplication(), R.mipmap.ic_launcher);
    }
}
